import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 7,
      title: '主数据管理',
    },
    name: 'Information',
    path: '/information',
    children: [
      {
        name: 'InformationMaterial',
        path: '/information/material',
        component: () => import('#/views/information/material/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '物资管理',
        },
      },
      {
        name: 'InformationWarning',
        path: '/information/warning',
        component: () => import('#/views/information/warning/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '报警设置',
        },
      },
      {
        name: 'InformationFactory',
        path: '/information/factory',
        component: () => import('#/views/information/factory/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '厂商设置',
        },
      },
      {
        name: 'InformationDevice',
        path: '/information/device',
        component: () => import('#/views/information/device/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '仪器管理',
        },
      },
      {
        name: 'InformationLocation',
        path: '/information/location',
        component: () => import('#/views/information/location/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '库位管理',
        },
      },
      {
        name: 'InformationBrand',
        path: '/information/brand',
        component: () => import('#/views/information/brand/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '品牌管理',
        },
      },
    ],
  },
];

export default routes;
